package com.shopping.nacos.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jiaZhenpeng
 * @Title: TestController
 * @Package com.shopping.nacos.controller
 * @Description: 测试Controller
 * @date 2022/7/2617:34
 */
@RestController
public class TestController {

    @Value("${spring.application.name}")
    private String applicationName;

    @PostMapping("/hello")
    public String hello(@RequestParam(value = "name") String str){
        return applicationName+"--"+str;
    }

}
